import axios from "axios";
// import { config } from "vue/types/umd";

const request =axios.create({
    baseURL:'/api',
    timeout:5000,
})

request.interceptors.request.use((config)=>{
    return config;
});
request.interceptors.response.use((res)=>{
    return res.data;
},(error)=>{
    return Promise.reject(new Error('faile'));
});
export default request;